package org.sdp.pearproject.controller;


import org.sdp.pearproject.dto.request.*;
import org.sdp.pearproject.dto.response.*;
import org.sdp.pearproject.service.*;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.multipart.MultipartFile;

import java.io.File;
import java.util.Date;
import java.util.List;

/**
 * @ClassName: TaskToTagSuperController
 * @Description:
 * @Author: SDP
 * @Date: 2022-07-18
 * @Version: 1.0
 * Table: pear_task_to_tag
 * Comment:
 * 任务标签映射表
 */
public class TaskToTagSuperController extends BaseController {
    @Autowired
    TaskToTagService service;

    public Integer addTaskToTag(TaskToTagAddRequest request) throws Exception {
        return service.addTaskToTag(request);
    }

    public Integer updateTaskToTag(TaskToTagUpdateRequest request) throws Exception {
        return service.updateTaskToTag(request);
    }

    public Integer deleteTaskToTag(TaskToTagDeleteRequest request) throws Exception {
        return service.deleteTaskToTag(request);
    }

    public TaskToTagQueryResponse queryTaskToTag(TaskToTagQueryRequest request) throws Exception {
        return service.queryTaskToTag(request);
    }

    public List<TaskToTagQueryResponse> listTaskToTag(TaskToTagQueryRequest request) throws Exception {
        return service.listTaskToTag(request);
    }

    public Integer countTaskToTag(TaskToTagQueryRequest request) throws Exception {
        return service.countTaskToTag(request);
    }

    public BaseStatResponse statTaskToTag(TaskToTagQueryRequest request) throws Exception {
        return service.statTaskToTag(request);
    }

    public TaskToTagForTagsResponse tags(TaskToTagForTagsRequest request) throws Exception {
        return service.tags(request);
    }


}
